package com.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yeyuan
 * @since 2021-12-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CourseCollection对象", description="")
public class CourseCollection implements Serializable {

    private static final long serialVersionUID = 1L;

    public CourseCollection(Long cid, Long uid) {
        this.uid = uid;
        this.cid = cid;
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField(value = "uid")
    private Long uid;

    @ApiModelProperty(value = "课程id")
    @TableField(value = "cid")
    private Long cid;


}
